

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.png">
  <link rel="icon" href="/img/favicon.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="Fly542">
  <meta name="keywords" content="">
  
    <meta name="description" content="测试请求命令如下 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910">
<meta property="og:type" content="article">
<meta property="og:title" content="unbound_subnet请求分析">
<meta property="og:url" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/index.html">
<meta property="og:site_name" content="Fly542 技术沉淀">
<meta property="og:description" content="测试请求命令如下 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-0.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-1.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-2.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-3.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-4.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-5.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-6.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-7.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-8.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-9.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-10.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-11.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-12.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-13.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-14.png">
<meta property="og:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-15.png">
<meta property="article:published_time" content="2023-05-09T02:47:22.000Z">
<meta property="article:modified_time" content="2023-05-16T03:57:03.499Z">
<meta property="article:author" content="Fly542">
<meta property="article:tag" content="dns">
<meta property="article:tag" content="unbound">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="http://fly542.cn/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-0.png">
  
  
  <title>unbound_subnet请求分析 - Fly542 技术沉淀</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4/github-markdown.min.css" />
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/hint.css@2/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@10/styles/github-gist.min.css" />
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.css" />
  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"fly542.cn","root":"/","version":"1.8.14","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/local-search.xml"};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 6.0.0"></head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>Fly542 技术沉淀</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/img/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="unbound_subnet请求分析">
              
            </span>

            
              <div class="mt-3">
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2023-05-09 10:47" pubdate>
        2023年5月9日 上午
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      4.8k 字
    </span>
  

  
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      41 分钟
    </span>
  

  
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">unbound_subnet请求分析</h1>
            
            <div class="markdown-body">
              <p>测试请求命令如下</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><div class="code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br></pre></div></td><td class="code"><pre><code class="hljs yaml">[<span class="hljs-string">root@whb-dev-1eaf52c0a</span> <span class="hljs-string">packaging</span>]<span class="hljs-comment"># ./dig @127.0.0.1  -p 10054  www.baidu.com. +subnet=182.61.128.241</span><br><br><span class="hljs-string">;</span> <span class="hljs-string">&lt;&lt;&gt;&gt;</span> <span class="hljs-string">DiG</span> <span class="hljs-number">9.11</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span> <span class="hljs-string">&lt;&lt;&gt;&gt;</span> <span class="hljs-string">@127.0.0.1</span> <span class="hljs-string">-p</span> <span class="hljs-number">10054</span> <span class="hljs-string">www.baidu.com.</span> <span class="hljs-string">+subnet=182.61.128.241</span><br><span class="hljs-string">;</span> <span class="hljs-string">(1</span> <span class="hljs-string">server</span> <span class="hljs-string">found)</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">global options:</span> <span class="hljs-string">+cmd</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">Got answer:</span><br><span class="hljs-string">;;</span> <span class="hljs-string">-&gt;&gt;HEADER&lt;&lt;-</span> <span class="hljs-attr">opcode:</span> <span class="hljs-string">QUERY,</span> <span class="hljs-attr">status:</span> <span class="hljs-string">NOERROR,</span> <span class="hljs-attr">id:</span> <span class="hljs-number">24481</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">flags:</span> <span class="hljs-string">qr</span> <span class="hljs-string">rd</span> <span class="hljs-string">ra;</span> <span class="hljs-attr">QUERY:</span> <span class="hljs-number">1</span><span class="hljs-string">,</span> <span class="hljs-attr">ANSWER:</span> <span class="hljs-number">3</span><span class="hljs-string">,</span> <span class="hljs-attr">AUTHORITY:</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> <span class="hljs-attr">ADDITIONAL:</span> <span class="hljs-number">1</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">OPT PSEUDOSECTION:</span><br><span class="hljs-string">;</span> <span class="hljs-attr">EDNS: version:</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> <span class="hljs-string">flags:;</span> <span class="hljs-attr">udp:</span> <span class="hljs-number">1232</span><br><span class="hljs-string">;</span> <span class="hljs-attr">CLIENT-SUBNET:</span> <span class="hljs-number">182.61</span><span class="hljs-number">.128</span><span class="hljs-number">.241</span><span class="hljs-string">/32/27</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">QUESTION SECTION:</span><br><span class="hljs-string">;www.baidu.com.</span>			<span class="hljs-string">IN</span>	<span class="hljs-string">A</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">ANSWER SECTION:</span><br><span class="hljs-string">www.baidu.com.</span>		<span class="hljs-number">1200	</span><span class="hljs-string">IN</span>	<span class="hljs-string">CNAME</span>	<span class="hljs-string">www.a.shifen.com.</span><br><span class="hljs-string">www.a.shifen.com.</span>	<span class="hljs-number">300</span>	<span class="hljs-string">IN</span>	<span class="hljs-string">A</span>	<span class="hljs-number">14.119</span><span class="hljs-number">.104</span><span class="hljs-number">.254</span><br><span class="hljs-string">www.a.shifen.com.</span>	<span class="hljs-number">300</span>	<span class="hljs-string">IN</span>	<span class="hljs-string">A</span>	<span class="hljs-number">14.119</span><span class="hljs-number">.104</span><span class="hljs-number">.189</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">Query time:</span> <span class="hljs-number">762</span> <span class="hljs-string">msec</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">SERVER:</span> <span class="hljs-number">127.0</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span><span class="hljs-comment">#10054(127.0.0.1)</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">WHEN:</span> <span class="hljs-string">Tue</span> <span class="hljs-string">May</span> <span class="hljs-number">09</span> <span class="hljs-number">09</span><span class="hljs-string">:29:16</span> <span class="hljs-string">CST</span> <span class="hljs-number">2023</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">MSG SIZE  rcvd:</span> <span class="hljs-number">113</span><br><br>[<span class="hljs-string">root@whb-dev-1eaf52c0a</span> <span class="hljs-string">packaging</span>]<span class="hljs-comment"># ./dig @127.0.0.1  -p 10054  www.baidu.com. +subnet=0.0.0.0</span><br><br><span class="hljs-string">;</span> <span class="hljs-string">&lt;&lt;&gt;&gt;</span> <span class="hljs-string">DiG</span> <span class="hljs-number">9.11</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span> <span class="hljs-string">&lt;&lt;&gt;&gt;</span> <span class="hljs-string">@127.0.0.1</span> <span class="hljs-string">-p</span> <span class="hljs-number">10054</span> <span class="hljs-string">www.baidu.com.</span> <span class="hljs-string">+subnet=0.0.0.0</span><br><span class="hljs-string">;</span> <span class="hljs-string">(1</span> <span class="hljs-string">server</span> <span class="hljs-string">found)</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">global options:</span> <span class="hljs-string">+cmd</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">Got answer:</span><br><span class="hljs-string">;;</span> <span class="hljs-string">-&gt;&gt;HEADER&lt;&lt;-</span> <span class="hljs-attr">opcode:</span> <span class="hljs-string">QUERY,</span> <span class="hljs-attr">status:</span> <span class="hljs-string">NOERROR,</span> <span class="hljs-attr">id:</span> <span class="hljs-number">44788</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">flags:</span> <span class="hljs-string">qr</span> <span class="hljs-string">rd</span> <span class="hljs-string">ra;</span> <span class="hljs-attr">QUERY:</span> <span class="hljs-number">1</span><span class="hljs-string">,</span> <span class="hljs-attr">ANSWER:</span> <span class="hljs-number">3</span><span class="hljs-string">,</span> <span class="hljs-attr">AUTHORITY:</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> <span class="hljs-attr">ADDITIONAL:</span> <span class="hljs-number">1</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">OPT PSEUDOSECTION:</span><br><span class="hljs-string">;</span> <span class="hljs-attr">EDNS: version:</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> <span class="hljs-string">flags:;</span> <span class="hljs-attr">udp:</span> <span class="hljs-number">1232</span><br><span class="hljs-string">;</span> <span class="hljs-attr">CLIENT-SUBNET:</span> <span class="hljs-number">0.0</span><span class="hljs-number">.0</span><span class="hljs-number">.0</span><span class="hljs-string">/32/24</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">QUESTION SECTION:</span><br><span class="hljs-string">;www.baidu.com.</span>			<span class="hljs-string">IN</span>	<span class="hljs-string">A</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">ANSWER SECTION:</span><br><span class="hljs-string">www.baidu.com.</span>		<span class="hljs-number">1200	</span><span class="hljs-string">IN</span>	<span class="hljs-string">CNAME</span>	<span class="hljs-string">www.a.shifen.com.</span><br><span class="hljs-string">www.a.shifen.com.</span>	<span class="hljs-number">300</span>	<span class="hljs-string">IN</span>	<span class="hljs-string">A</span>	<span class="hljs-number">180.101</span><span class="hljs-number">.50</span><span class="hljs-number">.188</span><br><span class="hljs-string">www.a.shifen.com.</span>	<span class="hljs-number">300</span>	<span class="hljs-string">IN</span>	<span class="hljs-string">A</span>	<span class="hljs-number">180.101</span><span class="hljs-number">.50</span><span class="hljs-number">.242</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">Query time:</span> <span class="hljs-number">977</span> <span class="hljs-string">msec</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">SERVER:</span> <span class="hljs-number">127.0</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span><span class="hljs-comment">#10054(127.0.0.1)</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">WHEN:</span> <span class="hljs-string">Tue</span> <span class="hljs-string">May</span> <span class="hljs-number">09</span> <span class="hljs-number">09</span><span class="hljs-string">:29:27</span> <span class="hljs-string">CST</span> <span class="hljs-number">2023</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">MSG SIZE  rcvd:</span> <span class="hljs-number">113</span><br><br>[<span class="hljs-string">root@whb-dev-1eaf52c0a</span> <span class="hljs-string">packaging</span>]<span class="hljs-comment"># ./dig @127.0.0.1  -p 10054  www.baidu.com.</span><br><br><span class="hljs-string">;</span> <span class="hljs-string">&lt;&lt;&gt;&gt;</span> <span class="hljs-string">DiG</span> <span class="hljs-number">9.11</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span> <span class="hljs-string">&lt;&lt;&gt;&gt;</span> <span class="hljs-string">@127.0.0.1</span> <span class="hljs-string">-p</span> <span class="hljs-number">10054</span> <span class="hljs-string">www.baidu.com.</span><br><span class="hljs-string">;</span> <span class="hljs-string">(1</span> <span class="hljs-string">server</span> <span class="hljs-string">found)</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">global options:</span> <span class="hljs-string">+cmd</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">Got answer:</span><br><span class="hljs-string">;;</span> <span class="hljs-string">-&gt;&gt;HEADER&lt;&lt;-</span> <span class="hljs-attr">opcode:</span> <span class="hljs-string">QUERY,</span> <span class="hljs-attr">status:</span> <span class="hljs-string">NOERROR,</span> <span class="hljs-attr">id:</span> <span class="hljs-number">1793</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">flags:</span> <span class="hljs-string">qr</span> <span class="hljs-string">rd</span> <span class="hljs-string">ra;</span> <span class="hljs-attr">QUERY:</span> <span class="hljs-number">1</span><span class="hljs-string">,</span> <span class="hljs-attr">ANSWER:</span> <span class="hljs-number">3</span><span class="hljs-string">,</span> <span class="hljs-attr">AUTHORITY:</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> <span class="hljs-attr">ADDITIONAL:</span> <span class="hljs-number">1</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">OPT PSEUDOSECTION:</span><br><span class="hljs-string">;</span> <span class="hljs-attr">EDNS: version:</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> <span class="hljs-string">flags:;</span> <span class="hljs-attr">udp:</span> <span class="hljs-number">1232</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">QUESTION SECTION:</span><br><span class="hljs-string">;www.baidu.com.</span>			<span class="hljs-string">IN</span>	<span class="hljs-string">A</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">ANSWER SECTION:</span><br><span class="hljs-string">www.baidu.com.</span>		<span class="hljs-number">1200	</span><span class="hljs-string">IN</span>	<span class="hljs-string">CNAME</span>	<span class="hljs-string">www.a.shifen.com.</span><br><span class="hljs-string">www.a.shifen.com.</span>	<span class="hljs-number">300</span>	<span class="hljs-string">IN</span>	<span class="hljs-string">A</span>	<span class="hljs-number">180.101</span><span class="hljs-number">.50</span><span class="hljs-number">.242</span><br><span class="hljs-string">www.a.shifen.com.</span>	<span class="hljs-number">300</span>	<span class="hljs-string">IN</span>	<span class="hljs-string">A</span>	<span class="hljs-number">180.101</span><span class="hljs-number">.50</span><span class="hljs-number">.188</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">Query time:</span> <span class="hljs-number">19</span> <span class="hljs-string">msec</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">SERVER:</span> <span class="hljs-number">127.0</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span><span class="hljs-comment">#10054(127.0.0.1)</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">WHEN:</span> <span class="hljs-string">Tue</span> <span class="hljs-string">May</span> <span class="hljs-number">09</span> <span class="hljs-number">09</span><span class="hljs-string">:29:31</span> <span class="hljs-string">CST</span> <span class="hljs-number">2023</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">MSG SIZE  rcvd:</span> <span class="hljs-number">101</span><br><br>[<span class="hljs-string">root@whb-dev-1eaf52c0a</span> <span class="hljs-string">packaging</span>]<span class="hljs-comment"># ./dig @127.0.0.1  -p 10054  www.baidu.com. +subnet=43.225.211.37</span><br><br><span class="hljs-string">;</span> <span class="hljs-string">&lt;&lt;&gt;&gt;</span> <span class="hljs-string">DiG</span> <span class="hljs-number">9.11</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span> <span class="hljs-string">&lt;&lt;&gt;&gt;</span> <span class="hljs-string">@127.0.0.1</span> <span class="hljs-string">-p</span> <span class="hljs-number">10054</span> <span class="hljs-string">www.baidu.com.</span> <span class="hljs-string">+subnet=43.225.211.37</span><br><span class="hljs-string">;</span> <span class="hljs-string">(1</span> <span class="hljs-string">server</span> <span class="hljs-string">found)</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">global options:</span> <span class="hljs-string">+cmd</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">Got answer:</span><br><span class="hljs-string">;;</span> <span class="hljs-string">-&gt;&gt;HEADER&lt;&lt;-</span> <span class="hljs-attr">opcode:</span> <span class="hljs-string">QUERY,</span> <span class="hljs-attr">status:</span> <span class="hljs-string">NOERROR,</span> <span class="hljs-attr">id:</span> <span class="hljs-number">40316</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">flags:</span> <span class="hljs-string">qr</span> <span class="hljs-string">rd</span> <span class="hljs-string">ra;</span> <span class="hljs-attr">QUERY:</span> <span class="hljs-number">1</span><span class="hljs-string">,</span> <span class="hljs-attr">ANSWER:</span> <span class="hljs-number">3</span><span class="hljs-string">,</span> <span class="hljs-attr">AUTHORITY:</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> <span class="hljs-attr">ADDITIONAL:</span> <span class="hljs-number">1</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">OPT PSEUDOSECTION:</span><br><span class="hljs-string">;</span> <span class="hljs-attr">EDNS: version:</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> <span class="hljs-string">flags:;</span> <span class="hljs-attr">udp:</span> <span class="hljs-number">1232</span><br><span class="hljs-string">;</span> <span class="hljs-attr">CLIENT-SUBNET:</span> <span class="hljs-number">43.225</span><span class="hljs-number">.211</span><span class="hljs-number">.37</span><span class="hljs-string">/32/22</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">QUESTION SECTION:</span><br><span class="hljs-string">;www.baidu.com.</span>			<span class="hljs-string">IN</span>	<span class="hljs-string">A</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">ANSWER SECTION:</span><br><span class="hljs-string">www.baidu.com.</span>		<span class="hljs-number">1200	</span><span class="hljs-string">IN</span>	<span class="hljs-string">CNAME</span>	<span class="hljs-string">www.a.shifen.com.</span><br><span class="hljs-string">www.a.shifen.com.</span>	<span class="hljs-number">300</span>	<span class="hljs-string">IN</span>	<span class="hljs-string">A</span>	<span class="hljs-number">182.61</span><span class="hljs-number">.200</span><span class="hljs-number">.6</span><br><span class="hljs-string">www.a.shifen.com.</span>	<span class="hljs-number">300</span>	<span class="hljs-string">IN</span>	<span class="hljs-string">A</span>	<span class="hljs-number">182.61</span><span class="hljs-number">.200</span><span class="hljs-number">.7</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">Query time:</span> <span class="hljs-number">89</span> <span class="hljs-string">msec</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">SERVER:</span> <span class="hljs-number">127.0</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span><span class="hljs-comment">#10054(127.0.0.1)</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">WHEN:</span> <span class="hljs-string">Tue</span> <span class="hljs-string">May</span> <span class="hljs-number">09</span> <span class="hljs-number">09</span><span class="hljs-string">:29:40</span> <span class="hljs-string">CST</span> <span class="hljs-number">2023</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">MSG SIZE  rcvd:</span> <span class="hljs-number">113</span><br><br>[<span class="hljs-string">root@whb-dev-1eaf52c0a</span> <span class="hljs-string">packaging</span>]<span class="hljs-comment"># ./dig @127.0.0.1  -p 10054  www.baidu.com. +subnet=1.225.211.37</span><br><br><span class="hljs-string">;</span> <span class="hljs-string">&lt;&lt;&gt;&gt;</span> <span class="hljs-string">DiG</span> <span class="hljs-number">9.11</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span> <span class="hljs-string">&lt;&lt;&gt;&gt;</span> <span class="hljs-string">@127.0.0.1</span> <span class="hljs-string">-p</span> <span class="hljs-number">10054</span> <span class="hljs-string">www.baidu.com.</span> <span class="hljs-string">+subnet=1.225.211.37</span><br><span class="hljs-string">;</span> <span class="hljs-string">(1</span> <span class="hljs-string">server</span> <span class="hljs-string">found)</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">global options:</span> <span class="hljs-string">+cmd</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">Got answer:</span><br><span class="hljs-string">;;</span> <span class="hljs-string">-&gt;&gt;HEADER&lt;&lt;-</span> <span class="hljs-attr">opcode:</span> <span class="hljs-string">QUERY,</span> <span class="hljs-attr">status:</span> <span class="hljs-string">NOERROR,</span> <span class="hljs-attr">id:</span> <span class="hljs-number">25463</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">flags:</span> <span class="hljs-string">qr</span> <span class="hljs-string">rd</span> <span class="hljs-string">ra;</span> <span class="hljs-attr">QUERY:</span> <span class="hljs-number">1</span><span class="hljs-string">,</span> <span class="hljs-attr">ANSWER:</span> <span class="hljs-number">4</span><span class="hljs-string">,</span> <span class="hljs-attr">AUTHORITY:</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> <span class="hljs-attr">ADDITIONAL:</span> <span class="hljs-number">1</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">OPT PSEUDOSECTION:</span><br><span class="hljs-string">;</span> <span class="hljs-attr">EDNS: version:</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> <span class="hljs-string">flags:;</span> <span class="hljs-attr">udp:</span> <span class="hljs-number">1232</span><br><span class="hljs-string">;</span> <span class="hljs-attr">CLIENT-SUBNET:</span> <span class="hljs-number">1.225</span><span class="hljs-number">.211</span><span class="hljs-number">.37</span><span class="hljs-string">/32/12</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">QUESTION SECTION:</span><br><span class="hljs-string">;www.baidu.com.</span>			<span class="hljs-string">IN</span>	<span class="hljs-string">A</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">ANSWER SECTION:</span><br><span class="hljs-string">www.baidu.com.</span>		<span class="hljs-number">1200	</span><span class="hljs-string">IN</span>	<span class="hljs-string">CNAME</span>	<span class="hljs-string">www.a.shifen.com.</span><br><span class="hljs-string">www.a.shifen.com.</span>	<span class="hljs-number">30</span>	<span class="hljs-string">IN</span>	<span class="hljs-string">CNAME</span>	<span class="hljs-string">www.wshifen.com.</span><br><span class="hljs-string">www.wshifen.com.</span>	<span class="hljs-number">300</span>	<span class="hljs-string">IN</span>	<span class="hljs-string">A</span>	<span class="hljs-number">119.63</span><span class="hljs-number">.197</span><span class="hljs-number">.151</span><br><span class="hljs-string">www.wshifen.com.</span>	<span class="hljs-number">300</span>	<span class="hljs-string">IN</span>	<span class="hljs-string">A</span>	<span class="hljs-number">119.63</span><span class="hljs-number">.197</span><span class="hljs-number">.139</span><br><br><span class="hljs-string">;;</span> <span class="hljs-attr">Query time:</span> <span class="hljs-number">552</span> <span class="hljs-string">msec</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">SERVER:</span> <span class="hljs-number">127.0</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span><span class="hljs-comment">#10054(127.0.0.1)</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">WHEN:</span> <span class="hljs-string">Tue</span> <span class="hljs-string">May</span> <span class="hljs-number">09</span> <span class="hljs-number">09</span><span class="hljs-string">:29:46</span> <span class="hljs-string">CST</span> <span class="hljs-number">2023</span><br><span class="hljs-string">;;</span> <span class="hljs-attr">MSG SIZE  rcvd:</span> <span class="hljs-number">139</span><br></code></pre></td></tr></table></figure>

<h1 id="分析"><a href="#分析" class="headerlink" title="分析"></a>分析</h1><p>通过上述结果知道一共做了5次dig查询</p>
<table>
<thead>
<tr>
<th>次数</th>
<th>携带subnet信息</th>
<th>耗时(msec)</th>
<th>分析说明</th>
</tr>
</thead>
<tbody><tr>
<td>1</td>
<td>+subnet=182.61.128.241</td>
<td>762</td>
<td>耗时较长说明做了递归查询</td>
</tr>
<tr>
<td>2</td>
<td>+subnet=0.0.0.0</td>
<td>977</td>
<td></td>
</tr>
<tr>
<td>3</td>
<td>无</td>
<td>19</td>
<td>耗时较短说明没有做递归查询直接命中</td>
</tr>
<tr>
<td>4</td>
<td>+subnet=43.225.211.37</td>
<td>89</td>
<td></td>
</tr>
<tr>
<td>5</td>
<td>+subnet=1.225.211.37</td>
<td>552</td>
<td></td>
</tr>
</tbody></table>
<h2 id="第一个请求分析"><a href="#第一个请求分析" class="headerlink" title="第一个请求分析"></a>第一个请求分析</h2><ol>
<li><p>dig 向本地的10054端口 发起A记录查询</p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-0.png" srcset="/img/loading.gif" lazyload class=""></li>
<li><p>unbound向权威 192.58.128.30 发起ns请求查询<br>其中192.58.128.30为unbound配置文件中指定的root.hints文件中配置的13个根地址信息。此请求可以获取到最新的13个根配置数据信息</p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-1.png" srcset="/img/loading.gif" lazyload class=""></li>
<li><p>收到权威NS请求应答数据，包含13个根的NS信息，Additional 信息中包含27条记录信息，分别是13条A记录，13条AAAA记录和1条subnet信息</p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-2.png" srcset="/img/loading.gif" lazyload class="">
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-3.png" srcset="/img/loading.gif" lazyload class=""></li>
<li><p>发起递归查询com的A记录查询</p>
</li>
</ol>
<p>携带subnet信息向13个根中的某一个(192.33.4.13)发起 com 的A记录查询</p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-4.png" srcset="/img/loading.gif" lazyload class="">

<ol start="5">
<li><p>获取到com A记录查询结果<br>返回获取到的com的A的查询结果，返回com的13个ns信息，在Additional包含27条记录，其中13条com的A记录记过，13条AAAA记录结果和1条原始subnet信息</p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-5.png" srcset="/img/loading.gif" lazyload class=""></li>
<li><p>向com结果中某一个地址发起(192.54.112.30) baidu.com的A记录查询<br>查询时携带客户端subnet信息</p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-6.png" srcset="/img/loading.gif" lazyload class=""></li>
<li><p>获取到baidu.com的A记录结果</p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-7.png" srcset="/img/loading.gif" lazyload class="">
<p>从结果中可以看到baidu.com返回的subnet为0</p>
</li>
<li><p>向baidu.com某个地址发起查询<a target="_blank" rel="noopener" href="http://www.baidu.com/">www.baidu.com</a> 的A记录查询<br>发起查询时携带subnet记录信息</p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-8.png" srcset="/img/loading.gif" lazyload class=""></li>
<li><p>获取到cname的结果<a target="_blank" rel="noopener" href="http://www.a.shifen.com/">www.a.shifen.com</a><br>返回携带subnet信息，scope mask为0</p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-9.png" srcset="/img/loading.gif" lazyload class=""></li>
<li><p>向某个com地址发起 shifen.com 的A记录查询<br>查询时携带客户端subnet信息</p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-10.png" srcset="/img/loading.gif" lazyload class=""></li>
<li><p>获取shifen.com的A记录查询结果</p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-11.png" srcset="/img/loading.gif" lazyload class=""></li>
<li><p>向某个 shifen.com 地址发起 a.shifen.com 的A记录查询</p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-12.png" srcset="/img/loading.gif" lazyload class=""></li>
<li><p>获取到a.shifen.com 的A记录查询结果</p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-13.png" srcset="/img/loading.gif" lazyload class=""></li>
<li><p>根据a.shifen.com的结果向180.76.76.95发起<a target="_blank" rel="noopener" href="http://www.a.shifen.com的a记录查询/">www.a.shifen.com的A记录查询</a></p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-14.png" srcset="/img/loading.gif" lazyload class=""></li>
<li><p>获取到<a target="_blank" rel="noopener" href="http://www.a.shifen.com的a记录查询结果/">www.a.shifen.com的A记录查询结果</a></p>
<img src="/2023/05/09/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/07%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/unbound_subnet%E8%AF%B7%E6%B1%82%E5%88%86%E6%9E%90/1-15.png" srcset="/img/loading.gif" lazyload class="">
<p>获取到<a target="_blank" rel="noopener" href="http://www.a.shifen.com的结果,且scope/">www.a.shifen.com的结果，且scope</a> mask为27</p>
</li>
</ol>
<h1 id="结论"><a href="#结论" class="headerlink" title="结论"></a>结论</h1><ul>
<li>当用户请求携带subnet信息时, 递归查询时也会携带用户的subnet信息</li>
<li>当用户请求携带subnet信息时，结果有cname时, unbound做cname递归查询解析时仍然会携带客户端传递的cname信息</li>
</ul>

            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/categories/devops/">devops</a>
                    
                  </div>
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/dns/">dns</a>
                    
                      <a class="hover-with-bg" href="/tags/unbound/">unbound</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">
                  
                    本博客所有文章除特别声明外，均采用 <a target="_blank" href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！
                  
                </p>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/2023/08/10/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/03linux/21-rfc1035-bak/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile"></span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/2023/04/26/04DevOps/26nm%E7%9B%AE%E6%A0%87%E6%96%87%E4%BB%B6%E6%A0%BC%E5%BC%8F%E5%88%86%E6%9E%90/">
                        <span class="hidden-mobile">nm 目标文件格式分析《转》</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
  </div>
  

  

  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  <script  src="/js/local-search.js" ></script>



  
    <script  src="/js/img-lazyload.js" ></script>
  



  



  
    <script  src="https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4/anchor.min.js" ></script>
  
  
    <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js" ></script>
  






  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
        typing(title);
      
    })(window, document);
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>


</body>
</html>
